<?php

namespace app\controllers;

use app\components\BaseAuthController;

class SiteController extends BaseAuthController {

    public function actionIndex() {
        return $this->render();
    }

    public function actionTest(){
        $output = '[]';
        ob_start();
        passthru('ls -l');
        $output = ob_get_contents();
        ob_end_clean();
        print_r(explode("\n", $output));
//        return $this->redirect(["{$this->id}/index"]);
    }
}
